package cn.tedu._02notice.mapper;

import cn.tedu._02notice.pojo.entitly.Notice;
import cn.tedu._02notice.pojo.vo.NoticeDetailInfoVO;
import cn.tedu._02notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface NoticeMapper {
    int insert(Notice notice);

    List<NoticeListVO> list(@Param("title") String title,@Param("type") Integer type);

    NoticeDetailInfoVO selectById(Long id);

    int deleteById(Long id);

    int update(Notice notice);
}
